<?php

namespace app\api\validate;

use think\Validate;

class Redis extends Validate
{
    protected $rule = [
        'key|键' => 'require',
        'value|值' => 'require'
    ];

    protected $scene = [
        'set' => ['key', 'value'],
        'get' => ['key'],
        'del' => ['key'],
    ];

    protected $message = [
        'key.require' => '请输入键',
        'value.require' => '请输入值'
    ];
}